package com.tudouji.project.customer.mapper;

import java.util.Date;
import java.util.List;
import com.tudouji.project.customer.domain.CustomerBalance;

/**
 * 客户余额Mapper接口
 * 
 * @author tudouji
 * @date 2023-11-03
 */
public interface CustomerBalanceMapper 
{
    /**
     * 查询客户余额
     * 
     * @param id 客户余额ID
     * @return 客户余额
     */
    public CustomerBalance selectCustomerBalanceById(Long id);

    /**
     * 查询客户余额列表
     * 
     * @param customerBalance 客户余额
     * @return 客户余额集合
     */
    public List<CustomerBalance> selectCustomerBalanceList(CustomerBalance customerBalance);

    /**
     * 新增客户余额
     * 
     * @param customerBalance 客户余额
     * @return 结果
     */
    public int insertCustomerBalance(CustomerBalance customerBalance);

    /**
     * 修改客户余额
     * 
     * @param customerBalance 客户余额
     * @return 结果
     */
    public int updateCustomerBalance(CustomerBalance customerBalance);

    /**
     * 删除客户余额
     * 
     * @param id 客户余额ID
     * @return 结果
     */
    public int deleteCustomerBalanceById(Long id);
    public int deleteCustomerBalanceByDay(Date today);

    /**
     * 批量删除客户余额
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteCustomerBalanceByIds(Long[] ids);
}
